home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
- *
- *
- * NCSA HDF version 3.2r2
- * October 30, 1992
- *
- * NCSA HDF Version 3.2 source code and documentation are in the public
- * domain. Specifically, we give to the public domain all rights for future
- * licensing of the source code, all resale rights, and all publishing rights.
- *
- * We ask, but do not require, that the following message be included in all
- * derived works:
- *
- * Portions developed at the National Center for Supercomputing Applications at
- * the University of Illinois at Urbana-Champaign, in collaboration with the
- * Information Technology Institute of Singapore.
- *
- * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
- * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
- * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
- *
- ****************************************************************************
- */
-
- /*
- $Header: /hdf/hdf/v3.2r2/src/RCS/dfan.h,v 1.1 1992/08/25 21:40:44 koziol beta koziol $
-
- $Log: dfan.h,v $
- * Revision 1.1 1992/08/25 21:40:44 koziol
- * Initial revision
- *
- */
- /*------------------------------------------------------------------------------
- * File: dfan.h
- * Purpose: header file for the Annotations set
- * Invokes: df.h
- * Contents:
- * Structure definitions: DFANdirentry, DFANdirhead
- * Constant definitions: DFAN_LABEL, DFAN_DESC
- * Remarks: none
- *----------------------------------------------------------------------------*/
-
- #ifndef DFAN_H /* avoid re-inclusion */
- #define DFAN_H
-
- #include "hdf.h"
-
- #define DFAN_LABEL 0
- #define DFAN_DESC 1
-
- #define DFAN_DEFENTRIES 16 /* no of dir entries to add at a time */
-
- /* This structure stores an entry in the label/desc directory */
- /* for a label/desc in the file, it gives the ref of the label/desc,
- and the tag/ref of the data item to which the label/desc relates */
-
- typedef struct {
- uint16 annref; /* ref of annotation */
- uint16 datatag, dataref; /* tag/ref of data */
- } DFANdirentry;
-
- /* This structure is a head node for the directory, which is organized as
- as a linked list of arrays. DFANdirentry is the structure of an
- array element, while DFANdirhead is the list element */
- typedef struct DFANdirhead {
- int32 nentries;
- struct DFANdirhead *next;
- DFANdirentry entries[1]; /* actually an arbitrary size array */
- } DFANdirhead;
-
- /* testing...
- #ifndef VMS
- int32 DFANIgetannlen();
- #else
- int32 _DFANIgetannlen();
- #endif
- ...tested */
-
-
- #endif /* DFAN_H */
-